<!DOCTYPE html>
<html>
<head>
<title>开始点餐</title>
<!-- for-mobile-apps -->
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="keywords" content="Pasta Responsive web template, Bootstrap Web Templates, Flat Web Templates, Andriod Compatible web template, 
Smartphone Compatible web template, free webdesigns for Nokia, Samsung, LG, SonyErricsson, Motorola web design" />
<script type="application/x-javascript"> addEventListener("load", function() { setTimeout(hideURLbar, 0); }, false);
		function hideURLbar(){ window.scrollTo(0,1); } </script>
<!-- //for-mobile-apps -->
<link href="css/bootstrap.css" rel="stylesheet" type="text/css" media="all" />
<link href="css/style.css" rel="stylesheet" type="text/css" media="all" />
<!-- js -->
<script src="js/jquery-1.11.1.min.js"></script>
<!-- //js -->
<!-- start-smoth-scrolling -->
<script type="text/javascript" src="js/move-top.js"></script>
<script type="text/javascript" src="js/easing.js"></script>
<script type="text/javascript">
	jQuery(document).ready(function($) {
		$(".scroll").click(function(event){		
			event.preventDefault();
			$('html,body').animate({scrollTop:$(this.hash).offset().top},1000);
		});
	});
</script>
<!-- start-smoth-scrolling -->
<!--<link href="css/Raleway.css" rel='stylesheet' type='text/css'>-->
</head>
	
<body>
<!-- header -->
	<div class="header">
		<div class="container">
			<div class="header-nav">
				<nav class="navbar navbar-default">
					<!-- Brand and toggle get grouped for better mobile display -->
					<div class="navbar-header">
						<button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#bs-example-navbar-collapse-1">
							<span class="sr-only">Toggle navigation</span>
							<span class="icon-bar"></span>
							<span class="icon-bar"></span>
							<span class="icon-bar"></span>
						</button>
					    <a class="navbar-brand" href="index.html"><i class="glyphicon glyphicon-cutlery" aria-hidden="true"></i><span style="font-family:微软雅黑;color:red">重庆</span>小面</a>
					</div>
					<!-- Collect the nav links, forms, and other content for toggling -->
					<div class="collapse navbar-collapse nav-wil" id="bs-example-navbar-collapse-1">
						<ul class="nav navbar-nav">
							<li class="hvr-bounce-to-bottom"><a href="index.php">主页</a></li>
							<li class="hvr-bounce-to-bottom active"><a href="index.php?c=index&m=start">开始点餐</a></li>
							<li class="hvr-bounce-to-bottom"><a href="index.php?c=index&m=menu">菜品列表</a></li>
							<li class="hvr-bounce-to-bottom"><a href="">欢迎<?php
							session_start();
							if(isset($_SESSION["user"]))
								echo " ".$_SESSION["user"]."";
							else
								echo "您";
							  ?>  来吃面！</a></li>
							<?php 
								if(isset($_SESSION["user"]))
								{
							 ?>
							 	<li><a href="index.php?c=index&m=logout">注销</a></li>
							 	<li><a href="index.php?c=index&m=userEditForm">修改用户信息</a></li>
								<?php
							 	}
							 	else
							 	{
							 	?>
								<li class="hvr-bounce-to-bottom"><a href="index.php?c=index&m=userReg">注册用户</a></li>
								<li class="hvr-bounce-to-bottom"><a href="index.php?c=index&m=login">登陆</a></li>
								<?php
									}
									?>
						</ul>
					</div><!-- /navbar-collapse -->
				</nav>
			</div>
		</div>
	</div>
<!-- //header -->
<!-- about -->
	<div class="about">
		<div class="container">
			<h3>欢迎来到重庆小面！</h3>
			<p class="eum">致力于做最正宗的小面！</p>
			<div class="fig-text">
				<img src="images/banner.jpg" alt=" " class="img-responsive" />
			</div>
		</div>
	</div>
	<div class="advantages">
		<div class="container">
			<h3 style="color:black;font-family:微软雅黑">开始选择你喜爱的面食吧！</h3>
			<form method=post action="index.php?c=index&m=addorderRtlist" enctype="multipart/form-data" class="form-horizontal">
			<div class="our-advantages-grids">
				<div class="col-md-4 our-advantages-grid">
					<div class="col-xs-3 our-advantages-grd-left">
						<p style="color:black;font-family:微软雅黑">选择菜品</p>
					</div>
					<div class="col-xs-9 our-advantages-grd-right">
						
							<p style="color:black;font-family:微软雅黑">
							<?php 
							$sql="select * from food";
							$result=mysql_query($sql);
							while($row=mysql_fetch_assoc($result)){
								echo "<input type='checkbox' name='fids[]' value='".$row['fid']."'>".$row['name']." ￥".$row['price']."<br/>";
							}
							 ?>
								
								<!-- <input type="checkbox" name="fids[]" value="0">重庆小面	9￥<br/>  
								<input type="checkbox" name="fids[]" value="1">鸡丝凉面	10￥<br/>
								<input type="checkbox" name="fids[]" value="2">豌杂面	10￥<br/>
								<input type="checkbox" name="fids[]" value="3">清汤丸子面	10￥<br/>
								<input type="checkbox" name="fids[]" value="4">原味鸡汤面	6￥<br/>
								<input type="checkbox" name="fids[]" value="5">清汤炖鸡面	11￥<br/>
								<input type="checkbox" name="fids[]" value="6">宜宾燃面	10￥<br/> -->
							</p>	
					</div>
					<div class="clearfix"> </div>
				</div>
			</div>
			<div class="our-advantages-grids">
				<div class="col-md-12 our-advantages-grid">
					<div class="col-xs-3 our-advantages-grd-left">
						<p style="color:black;font-family:微软雅黑">填写地址</p>
					</div>
				<div class="col-md-12 contact-top-left">
					<div class="contact-textarea">
						<input type="text" name="address" placeholder="地址" style="color:black;font-family:微软雅黑"/>	
						<input type="submit" value="提交订单" >
						<input type="reset" value="重新填写" >
					</div>
				</div>
					<div class="clearfix"> </div>
				</div>
			</div>		
			</form>
		</div>
	</div>
	
<!-- //about -->
<!--- footer --->
	<div class="footer">
		<div class="container">
			<div class="footer-grids">
				<div class="col-md-3 footer-grid">
					<h3>重庆小面</h3>
					<p>舌尖上的美味，麻而不辣，辣而不燥，吃了还想吃，吃了忘不了！</p>
				</div>
				<div class="col-md-3 footer-grid">
					<h3>联系我们</h3>
					<div class="footer-grid-address">
						<p>Tel.800-000-000</p>
						<p>Fax: 1234 568</p>
						<p>Email: <a class="email-link" href="mailto:info@example.com">cqxm@nou.com.cn</a></p>
					</div>
				</div>
				<div class="clearfix"> </div>
			</div>
		</div>
	</div>
	<div class="clear"> </div>
	<div class="copy-right">
		<p>Copyright &copy; 2016.Company name All rights reserved.More Templates <a href="index.html" target="_blank" title="模板之家">重庆小面</a> - Collect from <a href="index.html" title="网页模板" target="_blank">CQXM</a></p>
	</div>
<!--- //footer --->
<!-- for bootstrap working -->
		<script src="js/bootstrap.js"> </script>
<!-- //for bootstrap working -->
</body>
</html>